﻿using BLL.Access;
using Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Web.Pages.YongShui._13.LAIHANGL
{
	public partial class MulFenHuDJ : BasePage
    {
        #region 变量

        YS_LH_LAIHANXXProcess _YS_LH_LAIHANXXBLL = new YS_LH_LAIHANXXProcess();

        #endregion

        protected void Page_Load(object sender, EventArgs e)
		{
            //第一次页面加载
            if (!IsPostBack)
            {
                BindEditData();
            }
        }

        /// <summary>
        /// 修改时加载数据
        /// </summary>
        private void BindEditData()
        {
            YS_LH_LAIHANXX laihanxx = null;
            //加载申请信息
            if (!string.IsNullOrEmpty(Request["id"]))
            {
                laihanxx = new YS_LH_LAIHANXXProcess().SelectYS_LH_LAIHANXX(decimal.Parse(Request["id"]));
            }
            else
            {
                laihanxx = new YS_LH_LAIHANXX();
            }
            
            this.UCLHBtnBottom.LoadInfo(laihanxx);
            this.UCLHSJBTNS.LoadInfo(laihanxx);
        }
    }
}